package com.gigalaxy.apps.starcom.flight.dto
{
	import com.gigalaxy.apps.starcom.flight.GGGlobalConfigs;
	import com.gigalaxy.apps.starcom.flight.GGGlobalRegister;
	import com.gigalaxy.utils.GGURLLoader;

	public class Route
	{
		public var departureCity:City;
		public var returnCities:Vector.<City>;

		public function Route()
		{
		}

		public function route(result:Function = null, error:Function = null, progress:Function = null):void
		{
			if (departureCity)
			{
				if (returnCities)
				{
					if (result != null)
					{
						result.call(null, returnCities);
					}
				}
				else
				{
				}
			}
		}

		private function routeByDepCity():void
		{
			var url:String = GGGlobalConfigs.urlConfig.lr + "?dep_city=" + departureCity.id;
			var loader:GGURLLoader = new GGURLLoader(url);
		}
	}
}
